
public class Duck extends Animal implements Fly{

	public Duck(String name, int weight, double price) {
		super(name, weight, price);
		
	}

	@Override
	public void say() {
		System.out.println("Quack");
		
	}

	@Override
	public void fly() {
		System.out.println(name + " can fly.");
		
	}

}
